package com.chem.lems.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@NoArgsConstructor                 //无参构造
@AllArgsConstructor                //有参构造
@ToString
public class UserExportVO {

    @ColumnWidth(35)
    @ExcelProperty("用户ID")
    private String userId;

    @ColumnWidth(10)
    @ExcelProperty("用户名")
    private String username;

    @ColumnWidth(11)
    @ExcelProperty("姓名")
    private String nikeName;

    @ColumnWidth(8)
    @ExcelProperty("性别")
    private String sex;

    @ColumnWidth(11)
    @ExcelProperty("所属角色")
    private String roelName;

    @ColumnWidth(13)
    @ExcelProperty("手机号码")
    private String mobile;

    @ColumnWidth(20)
    @ExcelProperty("邮箱")
    private String email;

    @ColumnWidth(20)
    @ExcelProperty("用户创建时间")
    private Date createTime;

    @ColumnWidth(20)
    @ExcelProperty("最近登录时间")
    private Date loginTime;

    @ColumnWidth(20)
    @ExcelProperty("关联设备")
    private String equipment;

}
